package com.cy.pj.brand.dao;

import com.cy.pj.brand.pojo.Brand;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BrandDao {

//    @Select("select * from tb_brand where name like concat('%',#{naem},'%')")
//    @Select("<script>select * from tb_brand <if></if> </script>")
    List<Brand> findBrands(String name);

    @Delete("delete from tb_brand where id=#{id}")
    public int deleteById(Integer id);



    public int insertBrand(Brand brand);
}
